package com.qf.day12_3;

/**
 * @author wgy
 * @version V1.0
 * @Project day12
 * @Package com.qf.day12_3
 * @Description: ${TODO}
 * @Date 2021/6/2 15:12
 */
public class Master {
    private String name;

    public Master(){

    }
    public Master(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    /**
     * 下班回家
     * @param tool
     */
    public void goHome(TracficTool tool){
        System.out.println(this.name+"下班了...");
        tool.run();
        System.out.println(this.name+"到家了...");
    }
}
